import request from '@/utils/request'

// 查询出资机构列表
export function listCompanyInvestmentOrgan(query) {
  return request({
    url: '/investOrgan/companyInvestmentOrgan/list',
    method: 'get',
    params: query
  })
}

// 查询出资机构详细
export function getCompanyInvestmentOrgan(id) {
  return request({
    url: '/investOrgan/companyInvestmentOrgan/' + id,
    method: 'get'
  })
}

// 保存出资机构
export function saveCompanyInvestmentOrgan(data) {
  return request({
    url: '/investOrgan/companyInvestmentOrgan/save',
    method: 'post',
    data: data
  })
}

// 删除出资机构
export function delCompanyInvestmentOrgan(id) {
  return request({
    url: '/investOrgan/companyInvestmentOrgan/' + id,
    method: 'delete'
  })
}

// 导出出资机构
export function exportCompanyInvestmentOrgan(query) {
  return request({
    url: '/investOrgan/companyInvestmentOrgan/export',
    method: 'get',
    params: query
  })
}
